﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: CardsEntity.cs
// 修改时间：2020-9-8 10:39:55
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：Cards 的实体类.
	/// </summary>
	[Table("Cards")]
	public partial class CardsEntity
	{
		#region Properties
		private int? _cardID = 0;
		/// <summary>
		/// 充值卡ID(主键)(自增长)
		/// </summary>
		[Column("CardID",TypeName="int")]
		[Key]
		[MyFlag("Identity")]
		public int? CardID
		{
			get {return _cardID;}
			set {_cardID = value;}
		}
		
		private int? _cardType = 0;
		/// <summary>
		/// 充值卡类型
		/// </summary>
		[Column("CardType",TypeName="int")]
		public int? CardType
		{
			get {return _cardType;}
			set {_cardType = value;}
		}
		
		private int? _productID = 0;
		/// <summary>
		/// 充值卡所属商品
		/// </summary>
		[Column("ProductID",TypeName="int")]
		public int? ProductID
		{
			get {return _productID;}
			set {_productID = value;}
		}
		
		private System.String _tableName = string.Empty;
		/// <summary>
		/// 表名
		/// </summary>
		[Column("TableName",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String TableName
		{
			get {return _tableName;}
			set {_tableName = value;}
		}
		
		private System.String _cardNum = string.Empty;
		/// <summary>
		/// 卡号
		/// </summary>
		[Column("CardNum",TypeName="nvarchar(30)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String CardNum
		{
			get {return _cardNum;}
			set {_cardNum = value;}
		}
		
		private System.String _password = string.Empty;
		/// <summary>
		/// 密码
		/// </summary>
		[Column("Password",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Password
		{
			get {return _password;}
			set {_password = value;}
		}
		
		private System.String _agentName = string.Empty;
		/// <summary>
		/// 代理商
		/// </summary>
		[Column("AgentName",TypeName="nvarchar(100)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String AgentName
		{
			get {return _agentName;}
			set {_agentName = value;}
		}
		
		private decimal? _money = 0;
		/// <summary>
		/// 面值
		/// </summary>
		[Column("Money",TypeName="money")]
		public decimal? Money
		{
			get {return _money;}
			set {_money = value;}
		}
		
		private int? _validNum = 0;
		/// <summary>
		/// 点数
		/// </summary>
		[Column("ValidNum",TypeName="int")]
		public int? ValidNum
		{
			get {return _validNum;}
			set {_validNum = value;}
		}
		
		private int? _validUnit = 0;
		/// <summary>
		/// 点数单位
		/// </summary>
		[Column("ValidUnit",TypeName="int")]
		public int? ValidUnit
		{
			get {return _validUnit;}
			set {_validUnit = value;}
		}
		
		private DateTime? _endDate = null;
		/// <summary>
		/// 截止日期
		/// </summary>
		[Column("EndDate",TypeName="datetime")]
		public DateTime? EndDate
		{
			get {return _endDate;}
			set {_endDate = value;}
		}
		
		private System.String _userName = string.Empty;
		/// <summary>
		/// 使用者
		/// </summary>
		[Column("UserName",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String UserName
		{
			get {return _userName;}
			set {_userName = value;}
		}
		
		private DateTime? _useTime = null;
		/// <summary>
		/// 充值时间
		/// </summary>
		[Column("UseTime",TypeName="datetime")]
		public DateTime? UseTime
		{
			get {return _useTime;}
			set {_useTime = value;}
		}
		
		private DateTime? _createTime = null;
		/// <summary>
		/// 生成时间
		/// </summary>
		[Column("CreateTime",TypeName="datetime")]
		public DateTime? CreateTime
		{
			get {return _createTime;}
			set {_createTime = value;}
		}
		
		private int? _orderItemID = 0;
		/// <summary>
		/// 售出
		/// </summary>
		[Column("OrderItemID",TypeName="int")]
		public int? OrderItemID
		{
			get {return _orderItemID;}
			set {_orderItemID = value;}
		}
		
		private System.String _productName = string.Empty;
		/// <summary>
		/// 所属商品名称
		/// </summary>
		[Column("ProductName",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String ProductName
		{
			get {return _productName;}
			set {_productName = value;}
		}
		
		#endregion
	}
}
